import React from 'react';
import Link from 'umi/link';
import { unitsSeparate, unitsPrice, locationStr } from '@/utils';
import _ from 'lodash';

const syncStatus = ['未同步', '同步成功', '同步失败'];

export const tableList2 = [
  {
    title: '渠道订单ID',
    key: 'skuCode',
  },
  {
    title: '平台订单ID',
    key: 'orderId',
  },
  {
    title: '交易渠道',
    key: 'channelType',
  },
  {
    title: '店铺',
    key: 'shop',
  },
  {
    title: '订单总金额',
    key: 'totalMoney',
    render: (text: any) => {
      if (text) {
        return unitsPrice(text, true);
      } else {
        if (text == 0) {
          return 0;
        }
        return '-';
      }
    },
  },
  {
    title: '支付方式',
    key: 'pay',
  },
  {
    title: '订单状态',
    key: 'status',
  },
  {
    title: '下单人',
    key: 'shopName',
  },
  {
    title: '下单时间',
    key: 'shopTime',
    type: 'datetime',
    width: 200,
  },
];
